<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
     template="TemplateFrontEnd.xhtml">
<ui:define name="title">Avant paiement</ui:define>
<ui:define name="body" >

<h:form>
<p:panelGrid columns="2">
	<p:outputLabel value="offre"/>
	<p:selectOneMenu value="#{infoOffreMB.idOffre}" >
	       <f:selectItems   value="#{paimentMB.listeOffre()}" var="a" itemLabel="#{a.idOffre}"  itemValue="#{a.idOffre}"/>
	</p:selectOneMenu>
	<p:commandButton ajax="false"  value="payer"  action="#{infoOffreMB.pay()}" />
</p:panelGrid>	
</h:form>

</ui:define>
</ui:composition>